package com.mg.persional.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;

/**
    * 会员的个人中心表
    */
@Data
@TableName(value = "tb_member_detail")
public class TbMemberDetail implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 照片
     */
    @TableField(value = "user_picture")
    private String userPicture;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 绑定的手机号码
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 用户与会员的关联字段
     */
    @TableField(value = "user_member")
    private Integer userMember;

    /**
     * 会员等级 0表示非会员 1表示普通会员 2表示黄金会员 3表示砖石会员
     */
    @TableField(value = "member_grade")
    private Integer memberGrade;

    /**
     * 状态 0表示不展示数据 1表示展示数据
     */
    @TableLogic(value = "1",delval = "0")
    @TableField(value = "member_status")
    private Integer memberStatus;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_PICTURE = "user_picture";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_PHONE = "phone";

    public static final String COL_USER_MEMBER = "user_member";

    public static final String COL_MEMBER_GRADE = "member_grade";

    public static final String COL_MEMBER_STATUS = "member_status";
}